package com.yuqiaotech.zcj.service.impl;

import java.util.List;

import com.yuqiaotech.zcj.auth.model.User;
import com.yuqiaotech.zcj.service.UserManager;


public class UserManagerImpl
extends GenericManagerImpl<User, Long> implements UserManager{

	public User getUserByUsernam(String username) {
		List<User> l = this.findByHql("from User where username=?", username);
		if(l.size()<1)return null;
		return l.get(0);
	}
}
